package com.wimcorp.magic.mana;

import java.util.List;

import com.wimcorp.magic.color.Color;

public class ConjuredManaPool extends ManaPool {

	public ConjuredManaPool() {

	}

	public ConjuredManaPool(Color... colors) {
		for (Color color : colors) {
			addMana(color);
		}
	}

	public int getAvailableMana(Color c) {
		if(c == Color.NEUTRAL){
			return getMaxMana();
		}
		List<Mana> mana = getMana(c);
		if (mana != null) {
			return mana.size();
		} else {
			return 0;
		}
	}

}
